package com.jr.controller;

import com.jr.entry.Flight_ticket;
import com.jr.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping("/ticket/")
public class TicketController {
    @Autowired
    private TicketService ticketService;

    @RequestMapping("find")
    public ArrayList<Flight_ticket > find (Flight_ticket flight_ticket){
        ArrayList<Flight_ticket> list = ticketService.select(flight_ticket);
        return list;
    }



}
